﻿namespace Ops.Host.Core.Entity;

/// <summary>
/// 设备点检
/// </summary>
[SugarTable("dv_spot_check", "设备点检表")]
public class DvSpotCheck : EntityBaseId
{
    /// <summary>
    /// 产线编码
    /// </summary>
    [DisplayName("产线")]
    [SugarColumn(ColumnDescription = "产线编码", Length = 64)]
    [Required, MaxLength(64)]
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 工站编码
    /// </summary>
    [DisplayName("工站")]
    [SugarColumn(ColumnDescription = "工站编码", Length = 64)]
    [Required, MaxLength(64)]
    [NotNull]
    public string? StationCode { get; set; }

    /// <summary>
    /// 工装
    /// </summary>
    [DisplayName("工装")]
    [NotNull, Required]
    public string? Tooling { get; set; }

    /// <summary>
    /// 点检项
    /// </summary>
    [DisplayName("点检项")]
    [NotNull, Required]
    public string? Item { get; set; }

    /// <summary>
    /// 点检值
    /// </summary>
    [DisplayName("点检值")]
    [NotNull, Required]
    public string? Value { get; set; }

    /// <summary>
    /// 点检结果
    /// </summary>
    [DisplayName("点检结果")]
    public bool IsPass { get; set; }

    /// <summary>
    /// 班次
    /// </summary>
    [DisplayName("班次")]
    public string? Shift { get; set; }

    /// <summary>
    /// 点检时间
    /// </summary>
    [SugarColumn(ColumnDescription = "点检时间")]
    [DisplayName("点检时间")]
    public DateTime CreateTime { get; set; }
}
